//
//  UIView+frame.h
//  ROL
//
//  Created by  on 2021/2/19.
//  Copyright © 2021 鸣世电竞. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (frame)
@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGSize size;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;
@property (nonatomic, assign) CGPoint origin;
@property (nonatomic, assign) CGFloat maxY;
@property (nonatomic, assign) CGFloat maxX;

@property (nonatomic, strong) UILabel * showNoDataView;
///// 删除所有子视图
//- (void)removeAllSubView;

/// 遍历子视图
/// @param tag 大于tag的子视图，将被遍历
/// @param block 回调
- (void)ergodicSubView:(NSInteger)tag block:(void (^)(id subview))block;

///// 从xib加载视图
//+ (instancetype)loadViewFromXIB;
//+ (UINib *)nib;
@end

NS_ASSUME_NONNULL_END
